package com.ruoyi.common.core.domain.zzw.BO;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

/**
 * 【请填写功能名称】对象 t_region_info
 *
 * @author xbx
 * @date 2023-10-20
 */
public class SafenessRankingBO /*extends BaseEntity*/ {
    private static final long serialVersionUID = 1L;

    public String getcYear() {
        return cYear;
    }

    public void setcYear(String cYear) {
        this.cYear = cYear;
    }

    public String getcMonth() {
        return cMonth;
    }

    public void setcMonth(String cMonth) {
        this.cMonth = cMonth;
    }

    public Long getcRegionId() {
        return cRegionId;
    }

    public void setcRegionId(Long cRegionId) {
        this.cRegionId = cRegionId;
    }

    public String getPreviousYear() {
        return previousYear;
    }

    public void setPreviousYear(String previousYear) {
        this.previousYear = previousYear;
    }

    public String getLastMonth() {
        return lastMonth;
    }

    public void setLastMonth(String lastMonth) {
        this.lastMonth = lastMonth;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SafenessRankingBO that = (SafenessRankingBO) o;
        return Objects.equals(cYear, that.cYear) && Objects.equals(cMonth, that.cMonth) && Objects.equals(cRegionId, that.cRegionId) && Objects.equals(previousYear, that.previousYear) && Objects.equals(lastMonth, that.lastMonth);
    }

    @Override
    public int hashCode() {
        return Objects.hash(cYear, cMonth, cRegionId, previousYear, lastMonth);
    }

    /**
     * 年
     */
    @ApiModelProperty("年")
    @JsonProperty
    private String cYear;

    /**
     * 月
     */
    @ApiModelProperty("月")
    @JsonProperty
    private String cMonth;
    /**
     * 地区id
     */
    @ApiModelProperty("地区id")
    private Long cRegionId;

    private String previousYear;
    private String lastMonth;
}
